package com.sinosoft.front.service;

public class ProvisonalStatusQueryServicePortTypeProxy implements com.sinosoft.front.service.ProvisonalStatusQueryServicePortType {
  private String _endpoint = null;
  private com.sinosoft.front.service.ProvisonalStatusQueryServicePortType provisonalStatusQueryServicePortType = null;
  
  public ProvisonalStatusQueryServicePortTypeProxy() {
    _initProvisonalStatusQueryServicePortTypeProxy();
  }
  
  public ProvisonalStatusQueryServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initProvisonalStatusQueryServicePortTypeProxy();
  }
  
  private void _initProvisonalStatusQueryServicePortTypeProxy() {
    try {
      provisonalStatusQueryServicePortType = (new com.sinosoft.front.service.ProvisonalStatusQueryServiceLocator()).getProvisonalStatusQueryServiceHttpSoap11Endpoint();
      if (provisonalStatusQueryServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)provisonalStatusQueryServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)provisonalStatusQueryServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (provisonalStatusQueryServicePortType != null)
      ((javax.xml.rpc.Stub)provisonalStatusQueryServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sinosoft.front.service.ProvisonalStatusQueryServicePortType getProvisonalStatusQueryServicePortType() {
    if (provisonalStatusQueryServicePortType == null)
      _initProvisonalStatusQueryServicePortTypeProxy();
    return provisonalStatusQueryServicePortType;
  }
  
  public void setProvisonalStatusQueryInterface(com.sinosoft.front.busInterface.xsd.ProvisonalStatusQueryInterface provisonalStatusQueryInterface) throws java.rmi.RemoteException{
    if (provisonalStatusQueryServicePortType == null)
      _initProvisonalStatusQueryServicePortTypeProxy();
    provisonalStatusQueryServicePortType.setProvisonalStatusQueryInterface(provisonalStatusQueryInterface);
  }
  
  public com.sinosoft.front.dto.xsd.ProvisonalStatusResponse queryProvisonalStatus(com.sinosoft.front.dto.xsd.ProvisonalStatusRequest request) throws java.rmi.RemoteException{
    if (provisonalStatusQueryServicePortType == null)
      _initProvisonalStatusQueryServicePortTypeProxy();
    return provisonalStatusQueryServicePortType.queryProvisonalStatus(request);
  }
  
  public void setProvisonalStatusQueryCheckInterface(com.sinosoft.front.busInterface.xsd.ProvisonalStatusQueryCheckInterface provisonalStatusQueryCheckInterface) throws java.rmi.RemoteException{
    if (provisonalStatusQueryServicePortType == null)
      _initProvisonalStatusQueryServicePortTypeProxy();
    provisonalStatusQueryServicePortType.setProvisonalStatusQueryCheckInterface(provisonalStatusQueryCheckInterface);
  }
  
  
}